package com.dc.adaptor.transport.addressconvertor;

import com.dc.adaptor.transport.TransportMeta;
import com.dc.adaptor.transport.ws.app.Ws2AppMeta;
import com.dc.adaptor.transport.ws.app.Ws2BankTaxMeta;

public class Ws2BankTaxAddressConvertor implements AddressConvertor<TransportMeta>{

	@Override
	public String getAddress(TransportMeta meta) {
		Ws2BankTaxMeta appMeta =  (Ws2BankTaxMeta)meta;
		return appMeta.getIp();
	}

	@Override
	public TransportMeta getMeta(final String address) {
		return new Ws2AppMeta(){
			@Override
			public String getIp() {
				return address;
			}
			
		};
	}

}
